<?php
class IndexController extends Cola_Controller
{
	
	public function init(){
		$model = $this->model('System');
		$this->loginUserInfo = $model->getLoginInfo();
		if( $this->loginUserInfo ){
			$this->view->loginUserInfo = $this->loginUserInfo;
		}else{
			$this->redirect('/admin/login/index');
		}
	}
	
    public function indexAction() {
    	$this->display('Admin/Index/index.php');
    }
    
    public function mainAction() {
        $this->display('Admin/Index/main.php');
    }  
}
?>